package cn.com.blueInfo.bpm.system.entity;

import cn.com.blueInfo.bpm.common.entity.BaseEntity;
import cn.com.blueInfo.bpm.system.enums.MenuType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 菜单表
 * @author suxch
 * @since 2025-08-24 01:37:55
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "mc_sys_menu", autoResultMap = true)
@Schema(description = "菜单表")
public class Menu extends BaseEntity {

    /** ID */
    @TableId(type = IdType.INPUT)
    @Schema(description = "ID")
    private Long id;
    /** 菜单名称 */
    @Schema(description = "菜单名称")
    private String menuName;
    /** 父级菜单ID（0代表一级菜单） */
    @Schema(description = "父级菜单ID（0代表一级菜单）")
    private Long parentId;
    /** 前端路由路径 */
    @Schema(description = "前端路由路径")
    private String routePath;
    /** 前端组件路径 */
    @Schema(description = "前端组件路径")
    private String component;
    /** 菜单图标（可选） */
    @Schema(description = "菜单图标（可选）")
    private String icon;
    /** 表单编码 */
    @Schema(description = "表单编码")
    private String formCode;
    /** 菜单类型：1-系统菜单，0-业务菜单 */
    @Schema(description = "菜单类型：1-系统菜单，0-业务菜单")
    private MenuType menuType;
    /** 菜单权限标识 */
    @Schema(description = "菜单权限标识")
    private String permissionKey;

}
